/*
 * @Author: malgee
 * @Date: 2025-04-18 11:26:27
 * @LastEditors: maling
 * @LastEditTime: 2025-04-18 11:28:07
 * @FilePath: /vue3-ts-cms/src/service/request/config.ts
 * @Description:
 *
 */
let BASE_URL = ''
const TIMEOUT = 10000

if (process.env.NODE_ENV === 'development') {
  BASE_URL = 'http://localhost:3000'
} else if (process.env.NODE_ENV === 'production') {
  BASE_URL = 'https://api.example.com'
} else if (process.env.NODE_ENV === 'test') {
  BASE_URL = 'https://test.example.com'
}

export { BASE_URL, TIMEOUT }
